<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
<!--<![endif]-->
<head>
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<link href="${ctx}/resources/css/bootstrap/css/bootstrap.css" rel="stylesheet" />
<link href="${ctx}/resources/css/bootstrap/css/metro.css" rel="stylesheet" />
<link href="${ctx}/resources/css/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
<link href="${ctx}/resources/css/bootstrap/css/font-awesome.css" rel="stylesheet" />
<link href="${ctx}/resources/css/bootstrap/css/style.css" rel="stylesheet">
<link href="${ctx}/resources/css/bootstrap/css/style_responsive.css" rel="stylesheet">
<link href="${ctx}/resources/css/bootstrap/css/style_light.css" rel="stylesheet">
<link href="${ctx}/resources/css/bootstrap/css/style_light_inline.css" rel="stylesheet">
<style type="text/css">
@media ( max-width : 767px) {
	[class*="span"],.uneditable-input[class*="span"],.row-fluid [class*="span"]
		{
		width: 49%;
		float: left;
		margin-right: 7px;
	}
}
</style>
<title>欢迎</title>
</head>
<body>
	<div class="container-fluid">
		<div class="row-fluid">
			<div class="span3 responsive" data-tablet="span6" data-desktop="span3">
				<div class="dashboard-stat blue">
					<div class="visual">
						<i class="icon-pencil"></i>
					</div>
					<div class="details">
						<div class="number">${obj.article }&nbsp;</div>
						<div class="desc">录入资金流水</div>
					</div>
					<a class="more" href="javascript:forword(1)"> View more <i class="m-icon-swapright m-icon-white"></i>
					</a>
				</div>
			</div>
			<div class="span3 responsive" data-tablet="span6" data-desktop="span3">
				<div class="dashboard-stat green">
					<div class="visual">
						<i class="icon-user"></i>
					</div>
					<div class="details">
						<div class="number">${obj.exp }1232</div>
						<div class="desc">未结算的流水</div>
					</div>
					<a class="more" href="javascript:forword(2)"> View more <i class="m-icon-swapright m-icon-white"></i>
					</a>
				</div>
			</div>
			<div class="span3 responsive" data-tablet="span6  fix-offset" data-desktop="span3">
				<div class="dashboard-stat purple">
					<div class="visual">
						<i class="icon-globe"></i>
					</div>
					<div class="details">
						<div class="number">${obj.sub }&nbsp;</div>
						<div class="desc">过期未缴的租金</div>
					</div>
					<a class="more" href="javascript:forword(3)"> View more <i class="m-icon-swapright m-icon-white"></i>
					</a>
				</div>
			</div>
			<div class="span3 responsive" data-tablet="span6" data-desktop="span3">
				<div class="dashboard-stat yellow">
					<div class="visual">
						<i class="icon-trash"></i>
					</div>
					<div class="details">
						<div class="number">${obj.recycle }&nbsp;</div>
						<div class="desc">生成资金周报</div>
					</div>
					<a class="more" href="javascript:forword(4)"> View more <i class="m-icon-swapright m-icon-white"></i>
					</a>
				</div>
			</div>
		</div>
		<div class="row-fluid">
			<div class="portlet">
				<div class="portlet-title">
					<h4>
						<i class="icon-cogs"></i>我的资料
					</h4>
				</div>
				<div class="portlet-body form">
					<form action="#" class="form-horizontal">
						<div class="control-group">
							<label class="control-label">上次登录时间</label>
							<div class="controls">
								<input class="span6 m-wrap" type="text" readonly="readonly" value="${AUTH_MANAGER.lastloginDatetime}"> <span
									class="help-inline">上次登录的时间，如有不同请及时修改你的密码.</span>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label">上次登录IP</label>
							<div class="controls">
								<input class="span6 m-wrap" type="text" readonly="readonly" value="${AUTH_MANAGER.loginIp}"> <span
									class="help-inline">上次登录的IP地址信息</span>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label">注册时间</label>
							<div class="controls">
								<input class="span6 m-wrap" type="text" readonly="readonly"
									value='<fmt:formatDate value="${AUTH_MANAGER.addTime}" pattern="yyyy-MM-dd HH:mm:ss"/>'> <span
									class="help-inline">记录了你注册的时间</span>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label">会员数目</label>
							<div class="controls">
								<input class="span6 m-wrap" type="text" readonly="readonly" value="${obj.userNum}"> <span class="help-inline">记录了网站所有的会员数</span>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label">在线数</label>
							<div class="controls">
								<input class="span6 m-wrap" type="text" readonly="readonly" value="${onLine}"> <span class="help-inline">当前有多少人在线${onlineUser }</span>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label">管理员数目</label>
							<div class="controls">
								<input class="span6 m-wrap" type="text" readonly="readonly" value="${obj.managerNum}"> <span class="help-inline">记录了网站管理员总数</span>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</body>
<script type="text/javascript" src="${ctx }/resources/js/jquery.js"></script>
<script type="text/javascript">
	var forword = function(obj) {
		if (obj == 1) {
			var $a = $(window.parent.document)
					.find(
							".page-sidebar > ul > li > ul > li > a[href$='${ctx}/cashflow/create.jhtml']");
			$a.get(0).click();
			var str = $a.parent().parent().parent().find("a").find("span")
					.text();
			text(str);
		} else if (obj == 2) {
			var $a = $(window.parent.document).find(
					".page-sidebar > ul > li > ul > li > a[href$='${ctx }/cashflow/test.jhtml']");
			$a.get(0).click();
			var str = $a.parent().parent().parent().find("a").find("span")
					.text();
			text(str);
		} else if (obj == 3) {
			var $a = $(window.parent.document)
					.find(
							".page-sidebar > ul > li > ul > li > a[href$='managetSubject']");
			$a.get(0).click();
			var str = $a.parent().parent().parent().find("a").find("span")
					.text();
			text(str);
		} else if (obj == 4) {
			var $a = $(window.parent.document)
					.find(
							".page-sidebar > ul > li > ul > li > a[href$='articleRecycle']");
			$a.get(0).click();
			var str = $a.parent().parent().parent().find("a").find("span")
					.text();
			text(str);
		}
	}
	var text = function(obj) {
		$(window.parent.document).find(".page-sidebar > ul > li").removeClass(
				'active');
		$(window.parent.document).find(
				".page-sidebar > ul > li > a > span[class='title']").each(
				function(i) {
					var text = $(this).text();
					if (text == obj) {
						$(this).parent().parent().addClass('open active');
						$(this).after('<span class="selected"></span>')
					}
				});
	}
</script>
</html>